package com.hgxd.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备运行日志：网关、串口服务器
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Getter
@Setter
@TableName("rb_equipment_run_log")
@ApiModel(value = "EquipmentRunLog对象", description = "设备运行日志：网关、串口服务器")
public class EquipmentRunLog implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("设备名称")
    private String name;

    @ApiModelProperty("所属组织ID")
    private Integer organizationId;

    @ApiModelProperty("所属组织名称")
    private String organizationName;

    @ApiModelProperty("详情")
    private String details;

    @ApiModelProperty("发生时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime date;

    @ApiModelProperty("备注")
    private String comment;

    @ApiModelProperty("设备sn码")
    private String sn;

    @ApiModelProperty("报警类型：网关离线、通信恢复")
    private String alarmType;

    @ApiModelProperty("是否删除：0未删除，1已删除")
    @TableLogic
    private String isdelete;


}
